//
// Created by afly on 20-12-28.
// Mail: a_fly0505@163.com
// QQ: 785230837 WX: afly003
// Company: juefx
//

#ifndef _JFX_THREAD_H
#define _JFX_THREAD_H

#include <pthread.h>
#include <thread>

namespace qsm {

    class Thread : public std::thread {
    public:
        template<typename _Callable, typename... _Args>
        explicit Thread(_Callable&& __f, _Args&&... __args) : thread(__f,  __args...) {}
        Thread() = default;

        int32_t SetSetafftinityNp();


    private:
        static int m_sThreadIndex;

    };

}


#endif //_JFX_THREAD_H
